<?php
namespace Dashboard\Model;
use  Think\Model;
class ServersModel extends Model{
    protected $_validate = array(
        array("name",'require','家政培训服务名称不能为空'),
        array("person",'require','联系人姓名不能为空'),
        array('phone','/^1[3|4|5|8][0-9]\d{4,8}$/','手机号码格式错误！','0','regex',1),
        array("address",'require','联系地址不能为空'),
        array("content",'require',"介绍/内容不能为空")
    );
}